package com.shawn.dao;

import com.shawn.entity.Category;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CategoryMapper {
    /**
     * 根据父节点查询下一级商品类目数据
     *
     * @param parentId 父节点Id
     * @return 查询结果
     */
    List<Category> queryListByParent(@Param("parentId") long parentId);
}
